Skip to content

fix(global): handle bins with uppercase name#1963

Merged
fengmk2 merged 10 commits into
voidzero-dev:mainfrom
liangmiQwQ:fix/handle-bins-with-uppercase-name
Jun 28, 2026
Merged

fix(global): handle bins with uppercase name#1963
fengmk2 merged 10 commits into
voidzero-dev:mainfrom
liangmiQwQ:fix/handle-bins-with-uppercase-name

Conversation

@liangmiQwQ

Copy link
Copy Markdown
Collaborator

There are two problems:

  • Vite+ now transforms all bin names to lower case. When there is a bin including uppercase letter (like vitePlus), it can stop the dispatch part from getting the real package and the real bin, and report bin not found.
  • Different from macOS / Windows, Linux is case-sensitive, means users can install bins like vP or nPM. Force to transform them into lowercase break these packages.

This PR fixes them by reading the real bin filename on Windows and macOS.

@netlify

netlify Bot commented Jun 27, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 0d5fbfd
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a406616f71ece0009763b09

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d81f597e88

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_global_cli/src/shim/mod.rs
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2d0a40bc89

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_global_cli/src/commands/global/install.rs Outdated
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

Codex actually reports some issues about #1808, this PR makes its influenced scope bigger and I will fix them while I'm in there.

@liangmiQwQ liangmiQwQ force-pushed the fix/handle-bins-with-uppercase-name branch from 997fce0 to af473d8 Compare June 27, 2026 12:04
@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: af473d8369

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/vite_global_cli/src/commands/global/install.rs Outdated
@liangmiQwQ liangmiQwQ marked this pull request as ready for review June 27, 2026 12:42
@fengmk2 fengmk2 merged commit e4f66ab into voidzero-dev:main Jun 28, 2026
40 checks passed
@liangmiQwQ liangmiQwQ deleted the fix/handle-bins-with-uppercase-name branch June 28, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants